package com.sise.dubbo.rpc;

import com.sise.dubbo.api.ABTestUserRpcService;
import com.sise.dubbo.dto.RpcRespDTO;
import com.sise.dubbo.dto.user.UserDTO;
import com.sise.dubbo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zitian
 * @data 2019/1/12
 */
@Service("abTestUserRpcService")
public class ABTestUserRpcServiceImpl implements ABTestUserRpcService {

    @Autowired
    private UserService userService;

    @Override
    public RpcRespDTO<Boolean> batchInsert(List<UserDTO> userDTOList) {
        return userService.batchInsertUser(userDTOList);
    }
}
